package com.zhijian.medical.service;


import com.zhijian.medical.entity.po.BeforeDehydration;
import com.zhijian.medical.entity.vo.request.BeforeDehydrationInsideSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.BeforeDehydrationSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.BeforeDehydrationSearchVo;
import com.zhijian.medical.entity.vo.response.BeforeDehydrationListVo;
import com.zhijian.medical.entity.vo.response.BeforeDehydrationVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 脱水前的样本放置容器表 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-11-08 16:27:02
 */
public interface BeforeDehydrationService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    BeforeDehydration selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    BeforeDehydrationVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param beforeDehydration
     * @return
     */
    Long insert(BeforeDehydration beforeDehydration);

    /**
     * 更改
     *
     * @param beforeDehydration
     * @return
     */
    boolean update(BeforeDehydration beforeDehydration);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(BeforeDehydration record);

    /**
     * 总数
     *
     * @param beforeDehydrationSearchVo
     * @return
     */
    Integer count(BeforeDehydrationSearchVo beforeDehydrationSearchVo);

    /**
     * 列表
     *
     * @param beforeDehydrationSearchVo
     * @return
     */
    List<BeforeDehydrationListVo> selectList(BeforeDehydrationSearchVo beforeDehydrationSearchVo);

    /**
     * 分页查询
     *
     * @param beforeDehydrationSearchVo
     * @return
     */
    Page<BeforeDehydrationListVo> selectPage(BeforeDehydrationSearchVo beforeDehydrationSearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<BeforeDehydration> entities);

    /**
     * 保存
     *
     * @param beforeDehydrationSaveOrUpdateVo
     * @return
     */
    boolean save(BeforeDehydrationSaveOrUpdateVo beforeDehydrationSaveOrUpdateVo);

    /**
     * 详情里面的保存
     *
     * @param beforeDehydrationInsideSaveOrUpdateVo
     * @return
     */
    boolean insideSave(BeforeDehydrationInsideSaveOrUpdateVo beforeDehydrationInsideSaveOrUpdateVo);
}